package com.tianji.learning.domain.query;

import com.tianji.common.domain.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "笔记分页查询参数")
public class NotesQuery extends PageQuery {

    @ApiModelProperty("课程id")
    @NotNull
    private Long courseId;

    @ApiModelProperty("节id")
    @NotNull
    private Long sectionId;

    @ApiModelProperty("是否查询我的")
    private Boolean onlyMine = false;
}


